package com.example.minefieldkeepercloud.adapter;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;

import com.example.minefieldkeepercloud.R;
import com.example.minefieldkeepercloud.bean.MinerHarvestBean;
import com.king.base.adapter.ViewHolderRecyclerAdapter;
import com.king.base.adapter.holder.ViewHolder;

import java.util.List;

/**
 * 矿机算力表
 * @Author:Created by  ygy
 * @time:2019/12/4
 */
public class MinerHarvesAdapter extends ViewHolderRecyclerAdapter<MinerHarvestBean.DataBeanX.DataBean> {
    public MinerHarvesAdapter(Context context, List<MinerHarvestBean.DataBeanX.DataBean> listData) {
        super(context, listData);
    }

    @Override
    public View buildConvertView(LayoutInflater layoutInflater, int viewType) {
        return layoutInflater.inflate(R.layout.item_miner_harvest,null);
    }

    @Override
    public void bindViewDatas(ViewHolder holder, MinerHarvestBean.DataBeanX.DataBean dataBean, int position) {

        holder.setText(R.id.tv_time,dataBean.getTime());
        holder.setText(R.id.tv_zxgs,dataBean.getZxgs());
        holder.setText(R.id.tv_sl,dataBean.getSl());
    }
}
